const express = require('express');
const history = express.Router();
const MeetingList = require('../model/list')
//筛选会议
history.get('/fliter', (req, res) => {
  if (req.query.id) {
    MeetingList.find({ id: req.query.id }).then(result => res.send({
      code: 200, data: result
    }))
  }
})
//历史会议
history.get('/history', (req, res) => {
  MeetingList.find({ status: true }).then(result => res.send({
    code: 200, data: result
  }))
})
module.exports = history;